package net.dopan.pigframe.user.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;

/**
 * @author wufeihong
 *  评论回复表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("comment_reply")
public class CommentReply extends Model<CommentReply> {

  private static final long serialVersionUID = 1L;
  /**
   * 回复Id
   */
  @TableId(value = "reply_id", type = IdType.AUTO)
  private long replyId;
  /**
   * 评论Id
   */
  @TableField("comment_id")
  private long commentId;
  @TableField("user_id")
  private long userId;
  /**
   * 评论内容
   */
  @TableField("reply_msg")
  private String replyMsg;

  @Override
  protected Serializable pkVal() {
    return this.replyId;
  }
}
